|
|
Chris Huff wrote:
> #macro Radial(Rays, ClrA, ClrB)
> pigment {radial
> frequency Rays
> color_map {
> [0 color ClrA]
> [1 color ClrB]
> }
> }
> #end
I'm using something nearly identical, but it is still not working.
My code is of the form:
#macro PigmentFunc (n)
#declare Pigment = pigment { bla bla n bla bla }
#end
I then try to call it by using:
PigmentFunc (0.5)
texture {Pigment}
However, Pov still complains when it gets to the first line of the code which
contains the n variable, saying "numeric expression expected but undeclared
identifier 'n' found instead."
Am I missing something fundamental here? Would there be any benifit in my
posing the code?
Simon
Post a reply to this message
|
|